from rest_framework.pagination import PageNumberPagination


class Mypage(PageNumberPagination):
    page_query_param = 'page'
    page_size_query_param = 'pagesize'
    page_size = 5
    max_page_size = 10

    def get_paginated_response(self, data):
        return super().get_paginated_response(data)